init(options)

Initialize the control. This is where any additional DOM elements are created and appended to the passed container div. The options object contains 3 properties...

The convention is to store the options object (along with any control specific properties) in a data element of the container div under the name "xrui_ctrl".

e.g.

$this.data('xrui_ctrl',options);